package com.yao.dubboconsumer.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author Henry Yao
 * @since 2021/5/3
 */
public class NettyClientConsumerHandler extends SimpleChannelInboundHandler {
    private Object result;
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {
        result = msg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}
